<template>
	<view class="container">
		<uni-list v-for="(item,index) in list">
			<uni-badge text="7" :absolute="absolute" :offset="offset">
			<uni-list-item  :title="item.name" :note="item.type"
				:thumb="'/static'+item.icon" thumb-size="lg" >
			</uni-list-item>
			</uni-badge>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				"list": [{
						"id": 1,
						"name": "徐明浩",
						"type": "舞蹈学院",
						"icon": "/images/c1.png",
						"description": "小八",
					},
					{
						"id": 2,
						"name": "赵一博",
						"type": "焊电学院",
						"icon": "/images/c2.png",
						"description": "赵啾咪"
					},
				],
				offset: [20, 38],
				absolute: 'rightTop'
			}
		},
		methods: {

		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
		/* position: relative; */
	}
</style>
